<?php
require_once 'PHPUnit/Framework.php';
require_once 'TVB/PWORKS/util/CommonUtil.class.php';

class ServiceCastAddTest extends PHPUnit_Framework_Testcase
{
    protected function setUp()
    {
        $this->url = 'http://pdes.tvb.com/services/add_cast.php';
    }

    protected function tearDown()
    {
        unset($this->url);
    }

    function testSucess() 
    {
        $param = array(
            'master'            => NULL, 
            'chi_last_name'     => NULL, 
            'chi_first_name'    => NULL, 
            'eng_last_name'     => NULL, 
            'eng_first_name1'   => NULL, 
            'eng_first_name2'   => NULL, 
            'others'            => NULL, 
            'see_also'          => NULL, 
            'remark'            => NULL, 
            'gender'            => NULL, 
            'is_chinese'        => NULL, 
            'created_at'        => NULL, 
            'created_by'        => NULL, 
            'modified_at'       => NULL, 
            'modified_by'       => NULL
        );
        $result = CommonUtil::curl_test($this->url, $param);
        var_dump($result);
    }
}
?>
